import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vite";
import path from "path";

export default defineConfig({
  plugins: [sveltekit()],
  resolve: {
    alias: {
      "@config": path.resolve(__dirname, "./src/config.ts"),
      "@components": path.resolve(__dirname, "./src/lib/components/index.ts"),
      "@motion": path.resolve(__dirname, "./src/lib/motion/index.ts"),
      "@languages": path.resolve(__dirname, "./src/lib/languages/index.ts"),
      "@stores": path.resolve(__dirname, "./src/lib/stores"),
      "@styles": path.resolve(__dirname, "./src/lib/styles"),
    },
  },
});
